package com.akk.module.app.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Component
public class AppAgentGradeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AppAgentGradeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAgentGradeIdIsNull() {
            addCriterion("agent_grade_id is null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdIsNotNull() {
            addCriterion("agent_grade_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdEqualTo(String value) {
            addCriterion("agent_grade_id =", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdNotEqualTo(String value) {
            addCriterion("agent_grade_id <>", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdGreaterThan(String value) {
            addCriterion("agent_grade_id >", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdGreaterThanOrEqualTo(String value) {
            addCriterion("agent_grade_id >=", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdLessThan(String value) {
            addCriterion("agent_grade_id <", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdLessThanOrEqualTo(String value) {
            addCriterion("agent_grade_id <=", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdLike(String value) {
            addCriterion("agent_grade_id like", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdNotLike(String value) {
            addCriterion("agent_grade_id not like", value, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdIn(List<String> values) {
            addCriterion("agent_grade_id in", values, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdNotIn(List<String> values) {
            addCriterion("agent_grade_id not in", values, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdBetween(String value1, String value2) {
            addCriterion("agent_grade_id between", value1, value2, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeIdNotBetween(String value1, String value2) {
            addCriterion("agent_grade_id not between", value1, value2, "agentGradeId");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameIsNull() {
            addCriterion("agent_grade_name is null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameIsNotNull() {
            addCriterion("agent_grade_name is not null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameEqualTo(String value) {
            addCriterion("agent_grade_name =", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameNotEqualTo(String value) {
            addCriterion("agent_grade_name <>", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameGreaterThan(String value) {
            addCriterion("agent_grade_name >", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameGreaterThanOrEqualTo(String value) {
            addCriterion("agent_grade_name >=", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameLessThan(String value) {
            addCriterion("agent_grade_name <", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameLessThanOrEqualTo(String value) {
            addCriterion("agent_grade_name <=", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameLike(String value) {
            addCriterion("agent_grade_name like", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameNotLike(String value) {
            addCriterion("agent_grade_name not like", value, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameIn(List<String> values) {
            addCriterion("agent_grade_name in", values, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameNotIn(List<String> values) {
            addCriterion("agent_grade_name not in", values, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameBetween(String value1, String value2) {
            addCriterion("agent_grade_name between", value1, value2, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeNameNotBetween(String value1, String value2) {
            addCriterion("agent_grade_name not between", value1, value2, "agentGradeName");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeIsNull() {
            addCriterion("agent_grade_type is null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeIsNotNull() {
            addCriterion("agent_grade_type is not null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeEqualTo(Integer value) {
            addCriterion("agent_grade_type =", value, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeNotEqualTo(Integer value) {
            addCriterion("agent_grade_type <>", value, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeGreaterThan(Integer value) {
            addCriterion("agent_grade_type >", value, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("agent_grade_type >=", value, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeLessThan(Integer value) {
            addCriterion("agent_grade_type <", value, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeLessThanOrEqualTo(Integer value) {
            addCriterion("agent_grade_type <=", value, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeIn(List<Integer> values) {
            addCriterion("agent_grade_type in", values, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeNotIn(List<Integer> values) {
            addCriterion("agent_grade_type not in", values, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeBetween(Integer value1, Integer value2) {
            addCriterion("agent_grade_type between", value1, value2, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("agent_grade_type not between", value1, value2, "agentGradeType");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateIsNull() {
            addCriterion("agent_grade_init_rate is null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateIsNotNull() {
            addCriterion("agent_grade_init_rate is not null");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateEqualTo(String value) {
            addCriterion("agent_grade_init_rate =", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateNotEqualTo(String value) {
            addCriterion("agent_grade_init_rate <>", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateGreaterThan(String value) {
            addCriterion("agent_grade_init_rate >", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateGreaterThanOrEqualTo(String value) {
            addCriterion("agent_grade_init_rate >=", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateLessThan(String value) {
            addCriterion("agent_grade_init_rate <", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateLessThanOrEqualTo(String value) {
            addCriterion("agent_grade_init_rate <=", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateLike(String value) {
            addCriterion("agent_grade_init_rate like", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateNotLike(String value) {
            addCriterion("agent_grade_init_rate not like", value, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateIn(List<String> values) {
            addCriterion("agent_grade_init_rate in", values, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateNotIn(List<String> values) {
            addCriterion("agent_grade_init_rate not in", values, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateBetween(String value1, String value2) {
            addCriterion("agent_grade_init_rate between", value1, value2, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andAgentGradeInitRateNotBetween(String value1, String value2) {
            addCriterion("agent_grade_init_rate not between", value1, value2, "agentGradeInitRate");
            return (Criteria) this;
        }

        public Criteria andSettleTypeIsNull() {
            addCriterion("settle_type is null");
            return (Criteria) this;
        }

        public Criteria andSettleTypeIsNotNull() {
            addCriterion("settle_type is not null");
            return (Criteria) this;
        }

        public Criteria andSettleTypeEqualTo(Integer value) {
            addCriterion("settle_type =", value, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeNotEqualTo(Integer value) {
            addCriterion("settle_type <>", value, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeGreaterThan(Integer value) {
            addCriterion("settle_type >", value, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("settle_type >=", value, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeLessThan(Integer value) {
            addCriterion("settle_type <", value, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeLessThanOrEqualTo(Integer value) {
            addCriterion("settle_type <=", value, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeIn(List<Integer> values) {
            addCriterion("settle_type in", values, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeNotIn(List<Integer> values) {
            addCriterion("settle_type not in", values, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeBetween(Integer value1, Integer value2) {
            addCriterion("settle_type between", value1, value2, "settleType");
            return (Criteria) this;
        }

        public Criteria andSettleTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("settle_type not between", value1, value2, "settleType");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}